package com.zbfmq.mqlistener;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author: LCG
 * 作者: LCG
 * 日期: 2021/3/10  14:10
 * 描述:
 */
//@RabbitListener(queues = {"TEST-QUEUE"})
//@Component
public class MyRabbitmqListener {


    @RabbitHandler
    public void msgHandler(String msg){

        System.out.println("=====QUEUE1=====>"+msg);

    }

}
